package com.xuan.webfinally.mapper;

import com.xuan.webfinally.entity.SysDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author gyuxuan
 * @since 2025-05-31
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {

     @Select("select dept_name from sys_dept where dept_id = #{deptId}")
    String Selectname(Long deptId);

     @Select("select dept_name from sys_dept where dept_id = #{deptId}")
    String getToName(Long deptId);
}
